home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Compute! Gazette 1984 October
/
1984-10.d64
/
vocab builder
(
.txt
)
< prev
Wrap
Commodore BASIC
|
2022-09-20
|
4KB
|
142 lines
5 sys65517:ifpeek(781)=40thenprint"":goto10
6 print"[144]"
10 printchr$(14):dima%(100),w$(100),d$(100),wr$(100):d=0
30 print"[147][197]nter your name[146]":inputnm$:iflen(nm$)=0then30
35 iflen(nm$)>13thennm$=left$(nm$,13)
50 print"[147]"tab(int((22-len(nm$))/2)-1)nm$;"'s[146]":printtab(3)"[214]ocabulary [212]est[146]"
55 n$="":a$="":b$="":da$="":x%=0:i=0:j=0:forq=1to100:a%(q)=0:w$(q)="":d$(q)=""
60 wr$(q)="":next:printspc(9);"[205]enu":printspc(2);"1) [197]nter [206]ew [215]ords"
80 printspc(2);"2) [211]tudy [217]our [215]ords":printspc(2);"3) [212]ake [193] [212]est"
100 printspc(2);"4) [197]nd":print" press 1-4 to continue[146]"
120 getz$:c$=z$:v=val(z$):ifz$=""or(v<1orv>4)then120
130 ifv=4then190
140 input"[196][146]isk or [212][146]ape";z$:ifz$<>"t"andz$<>"d"thenprint"[145][145][145][145]":goto130
150 a$="[157] ":ifz$="d"thend=1
160 onvgoto230,810,810
190 end
230 print"[147][197]nter # of new [215]ords "
235 inputx%:ifx%>100orx%<1then230
250 fori=1tox%
260 print"[147][197]nter [215]ord"i:inputw$(i)
265 iflen(w$(i))=0thenprint"[145][145][145][145][145][145]":goto260
270 print"[197]nter [196]efinition":inputd$(i)
275 iflen(d$(i))=0thenprint"[145][145][145]":goto270
280 next
300 print"[147]":fori=1tox%
310 print" [215]ord"i"[157]:";w$(i)
320 print" [196]efinition:"d$(i):print""
330 if(i/3)=int(i/3)andx%=3then360
332 if(i/3)=int(i/3)andx%<>ithengosub2000
340 next
360 print"[193]ny [195]orrections(y/n)? [146]"
380 getz$:ifz$=""or(z$<>"y"andz$<>"n")then380
390 ifz$="y"then420
400 ifz$="n"then520
420 i=0:input"[147][215]hich entry";i
435 ifi=0ori>x%thenprint"[145][145][145][145]":goto420
440 print"[215]ord"i"[157]:";w$(i)
450 print"[196]efinition:";d$(i)
470 print"[197]nter [215]ord"i:inputw$
480 w$(i)=w$
490 print"[197]nter [196]efinition":inputd$
500 d$(i)=d$
510 goto300
520 input"[212]oday's [196]ate: ";da$
540 print"[147] [208]lease [215]ait"
550 print"[201]'m [211]aving [217]our [215]ords [146]"
560 n$="test "+da$
565 ifd=1thenn$="test "+da$+",s,w"
570 open15,8,15:open1+d,1+7*d,1+d,n$:input#15,a$,b$
572 ifa$="63"thenclose(1+d):close15:goto520
575 ifa$<>"00"thenprintb$:fori=1to3000:next:close(1+d):close15:goto50
580 print#(1+d),x%:fori=1tox%
590 print#(1+d),w$(i):print#(1+d),d$(i)
600 nexti:close(1+d):close15:goto50
810 print"[147] [193] [212]est [205]ade [202]ust [198]or[146]":printtab(int((22-len(nm$))/2)-1)""nm$"[146]"
820 print"[197]nter the [212]est [196]ate ":inputda$
870 print"[147] [208]lease [215]ait"
880 print" [204]oading the [215]ords[146]"
890 n$="test "+da$
895 ifd=1thenn$="test "+da$+",s,r"
900 open15,8,15:open1+d,1+7*d,2*d,n$:input#15,a$,b$
902 ifa$="62"thenclose1+d:close15:goto810
905 ifa$<>"00"thenprintb$:fori=1to3000:next:close(1+d):close15:goto50
910 input#(1+d),x%:fori=1tox%
920 input#(1+d),w$(i)
930 ifw$(i)=""thengoto950
940 goto960
950 i=x%:goto970
960 input#(1+d),d$(i)
970 nexti
980 close(1+d):close15
1030 fori=1tox%
1040 a%=x%*rnd(1)+1:ifi=1thena%(i)=a%:goto1070
1050 forj=1tox%
1060 ifa%=a%(j)thenj=x%:next:goto1040
1065 next
1070 a%(i)=a%:next
1110 ifc$="2"thengoto1510
1120 print"[147] ";nm$;"'s [209]uiz [146]"
1130 n%=0
1140 fori=1tox%
1150 print""
1160 n=a%(i)
1170 print"[196]efinition: ";:printd$(n)
1180 print"[197]nter the [215]ord":inputwo$:ifwo$=""then1180
1190 ifwo$=w$(n)thenprint"[195][207][210][210][197][195][212] !":forz=1to1500:next:goto1230
1200 print"[211]orry, the word was:":printw$(n):forz=1to1500:next
1210 n%=n%+1
1220 wr$(n)=w$(n)
1230 print"[147]":nexti
1250 print"[217]ou got"n%"wrong":print"out of"x%:gosub1900:ifn%=0then2100
1260 fori=1to3000:next
1270 print"[147][212]he word(s) that you":print"got wrong are:"
1280 j=1:pq=0:fori=1tox%
1290 ifwr$(i)=""then1310
1300 pq=pq+1:print"";wr$(i)
1305 ifpq<>5*jthen1310
1306 j=j+1:print" [193]ny key to continue[146]":poke198,0
1307 getz$:ifz$=""then1307
1308 print"[147]":nexti:goto50
1310 nexti:gosub2000:goto50
1510 print"[147] [200]it the [194]ooks "
1520 n%=0
1530 fori=1tox%
1540 print"":n=a%(i)
1550 j%=1:j1%=1
1560 print"[196]efinition: ";:printd$(n)
1570 wo$="":print"[197]nter the [215]ord":inputwo$
1580 ifwo$=w$(n)thenprint"[195][207][210][210][197][195][212] !":goto1790
1590 ifleft$(wo$,2)=left$(w$(n),2)thengoto1610
1600 goto1680
1610 ifj1%>1thengoto1750
1620 print"[217]ou're close":print"[212]ry again"
1630 j1%=j1%+1
1640 ifw$(n)=wr$(n)thengoto1670
1650 wr$(n)=w$(n)
1670 print"":goto1560
1680 ifj%>2thengoto1750
1690 print"[211]orry, ";nm$:print"you're not even close":print"[212]ry again"
1691 forz=1to2500:next:print"[147]"
1700 print"":j%=j%+1
1710 ifw$(n)=wr$(n)thengoto1740
1720 wr$(n)=w$(n)
1740 goto1560
1750 print"[211]orry, the word was:":print" "w$(n):forz=1to3000:next:print"[147]"
1760 ifw$(n)=wr$(n)thengoto1790
1770 wr$(n)=w$(n)
1780 n%=n%+1
1790 fortd=1to1500:next:print"[147]":nexti:goto1250
1900 ifn%=0thenprint"[199][210][197][193][212] [202][207][194]":return
1910 n=10-(n%/x%*10)
1920 ifn<6.5thenprint"[194]etter study more":return
1930 ifn<8thenprint"[193] little more study":print"needed":return
1940 ifn<9thenprint"[206]ot bad":return
1950 ifn<9.5thenprint"[199]ood job":return
1960 ifn<10thenprint"[214]ery good"return
1970 return
2000 print" [193]ny key to continue "
2001 getmt$:ifmt$=""then2001
2002 print"[147]":return
2100 gosub2000:goto50